export default {
  getUserData: config => {
    let{ token} = JSON.parse(config.body)
    let user = {}
    if (token =="zk-------zk") {
      user = {
        name: '张凯',
        age: 18,
        adress: '杭州',
        rule:'管理员'
      }
    } else if (token =="cd-----cd") {
      user = {
        name: '陈迪',
        age: 20,
        adress: '杭州',
        rule:'用户'
      }
    }
    return {
      code: 200,
      msg: '成功',
      data: user
    }
  }
};
